<?php

// RawEval Module Constants
define( 'AUTH_CHAN', '#dab.beta' ); // This is so if someone leaves chan, they are logged out

// Cmd Module Constants
define( 'CMD', '.' ); // For the Cmds module, what all commands start with
define( 'CMD_RAW', '..' ); // What the raw command starts with
define( 'CMD_ERROR', '10(5Error10)' ); // Used for echoing error
define( 'CMD_SUCCESS', '10(3Success10)' ); // Used for echoing success

// Log MOdule Constants
define( 'LOGS_DEBUG', true ); // For the log module later

// DO NOT CHANGE Constants
define( 'MOD_END', -1 ); // Don't Change this (No need) CANNOT BE 0, 1

define( 'BOT_PATH', dirname( __FILE__ ) );
date_default_timezone_set( 'America/Los_Angeles' );
/*
 This config array is really for configuring Servers and Bots
 Not so much modules. So that is why most module settings
 are constants and not part of this array. I wasn't sure why
 I do it this way I just decided it was easier. I think its my
 laziness kicking in. xD
*/
$aConfig = array
(
    // This modules array loads in modules
    // That are to be run seperate from bots.
    // This way we can keep things running
    // Even if the bots aren't even running.
    // Not working atm.
    'Modules' => array
    (
        // 'remote'
    ),

	'Servers' => array 
	(
		'dab-media' => array
		(
			'server' => 'hub.dab.biz',
			'port'	  => 6667,
            'ssl'       => false,
		),
		'ffs' => array
		(
			'server' => 'irc.ffsnetwork.com',
			'port' => 6697,
            'ssl'       => true,
		),
		'freenode' => array
		(
			'server' => 'irc.freenode.org',
			'port'	  => 6667,
            'ssl'     => false,
		),
		'gtanet' => array
		(
			'server' => 'irc.gtanet.com',
			'port'	  => 6697,
            'ssl'     => true,
		),
		'rizon' => array
		(
			'server' => 'irc.rizon.net',
			'port'   => 6697,
			'ssl'    => true,
		),
    ), // End ['Servers']
    
    'Default' => array
    (
        'ident' => 'dabitp',
        'real' => 'dab\'s Bot',
        'defBot' => false,
        'useThread' => true,
        'networks' => array
        (
            // Network => Options
            'dab-media' => array
            (
                'bind' => null,
                // onConnect for this dab-Media network
                'onConnect' => array
                (
                    '',
                    //'JOIN #thebotnet,#knowledgesutra,#dryrid',
                )
                
            ),
        ),
        'Modules' => array
        (
            'RawEval', // For root bots, raw evaulating PHP
            'Cmds',
        ),
        // General onConnect for all networks
        'onConnect' => array
        (
            //'JOIN #dab',  //The previous method was just too much work
            'JOIN #dab,#dab.beta',

            //'NS IDENTIFY PASSWORD',
                
        ), // End 'onConnect'
    ),
    
    'Bots' => array 
    (
        'DyBot' => array
        (
            'ident'  => 'dabitp',
            'real'   => 'Dyvid Botajas (dab\'s bot)',
            'defBot' => true, // Only 1 can exist

            'networks' => array
            (
                // Network => Options
                'dab-media' => array
                (
                    'bind' => null,
                    // onConnect for this dab-Media network
                    'onConnect' => array
                    (
                        'JOIN #test',
                        // '',
                    )
                    
                ),
                'rizon' => array
                (
                    'bind' => null,
                    // onConnect for this dab-Media network
                    'onConnect' => array
                    (
                        'JOIN #news',
                    )
                    
                ),
            ),
            
            // General onConnect for all networks
            'onConnect' => array
            (
                //'JOIN #dab',  //The previous method was just too much work
                'JOIN #dab.beta',

                'NS IDENTIFY Password',
                    
            ), // End 'onConnect'

            'Modules' => array
            (
                //'Ignore',
                'RawEval', // For root bots, raw evaulating PHP
                'Cmds',
            )
        ), // End DeBot
        /*
         // This is how to do another bot.
        'DaBot' => array
        (
            'ident'  => 'dabitp',
            'real'   => 'David Botajas (dab\'s bot)',
            'defBot' => false, // Only 1 can exist

            'networks' => array
            (
                // Network => Options
                'dab-media' => array
                (
                    'bind' => null,
                    // onConnect for this dab-Media network
                    'onConnect' => array
                    (
                        '', // YOu need something in here if you have no values

                        //'JOIN #thebotnet,#knowledgesutra,#dryrid',
                    )
                    
                ),
            ),
            
            // General onConnect for all networks
            'onConnect' => array
            (
                //'JOIN #dab',  //The previous method was just too much work
                'JOIN #dab,#dab.beta',

                'NS IDENTIFY password',
                    
            ), // End 'onConnect'

            'Modules' => array
            (
                //'Ignore',
                'RawEval', // For root bots, raw evaulating PHP
                'Cmds',
            )
        ), // End DaBot
*/
    ), // End ['Bots']
    
    'Users' => array
    (
        '*!dabitp@dab.biz' => array
        (
            'Level' => 5,
            'Pass' => MD5( 'Password' )
        ),
        '*!~dabitp@Rizon-2987CC32.dab.biz' => array
        (
            'Level' => 5,
            'Pass' => md5( 'Password' )
        ),
            
    )

); // End $aConfig


?>
